package com.guigu.common.service.impl;

import com.guigu.common.service.SCellService;
import com.guigu.common.mapper.SCellMapper;
import com.guigu.common.pojo.SCell;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 库存单元
 */
@Service
public class SCellServiceImpl implements SCellService {

    @Resource
    private SCellMapper sCellMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return this.sCellMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SCell record) {

        return this.sCellMapper.insert(record);
    }

    @Override
    public int insertSelective(SCell record)
    {
        return this.sCellMapper.insertSelective(record);
    }

    @Override
    public SCell selectByPrimaryKey(Integer id) {

        return this.sCellMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SCell record)
    {
        return this.sCellMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SCell record) {

        return this.sCellMapper.updateByPrimaryKey(record);
    }


}
